package com.sun.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author SunRui
 * @description TODO
 * @date 2024/9/29 11:01
 */
@Controller
@RequestMapping("/api/Hello")
@ResponseBody
public class HelloController {

    @RequestMapping(value = "say")
    public String sayHello(){
        System.out.println("你好,SpringMvc !!!");
        return " 你好,SpringMvc !!!";
    }
}
